<html>
<head>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ page import="org.springframework.security.ui.webapp.AuthenticationProcessingFilter" %>
<%@ page import="org.springframework.security.ui.AbstractProcessingFilter" %>
<%@ page import="org.springframework.security.AuthenticationException" %>
<%@page import="com.yaodian100.core.admin.utils.AdminHelper"%>
<%@page import="org.springframework.security.userdetails.UserDetails"%>
<title>中台管理系统 ecadmin-耀点100</title>
<link rel="stylesheet" type="text/css" media="screen" href="/css/yaodian100_v1.css" />
</head>
<body>
<center>
<%
	UserDetails user = AdminHelper.getUserDetails();
%>
<c:if test="${empty user}">
<div style="margin:20 auto">
	<table style="width: 950px">
		<tr>
			<td style="width: 550px; text-align: left; height: 70px;" colspan="2">
				<img src="/images/logo_red_150x55.gif">
			</td>
		</tr>
		<tr>
			<td align="left" rowspan="2">
				<div id="main" class="member-log"></div>
			</td>
			<td>
				<div id="main" class="member-log">
					<form action="j_spring_security_check" name="login" method="post">
		 				<div class="m-reg">
				       		<h1>登录</h1>
				            <ul>
				              <li><div><label>帐户名：</label></div><div><input type="text" name="j_username" id="j_username" maxlength="100" value="feeling.wang" class="ipt-w20" /></div></li>
				              <li><div><label>密  码：</label></div><div><input type="password" name="j_password" id="j_password" maxlength="16" value="chiung1213" class="ipt-w20" onKeyPress="return SubmitEnter(this.form,event)" /></div></li>
				            </ul>
				            <br/>
				            <p align="center">
				            	<a onclick="document.login.submit();return false;" href="javascript:void(0);" class="btn-mid">登录</a><br/><br/>
				            </p>
    					</div>
					</form>
				</div>
			</td>
		</tr>
		<tr>
			<td style="height: 30px; text-align: center;">
				<c:if test="${not empty param.login_error}">
					<font color="red"> Your login attempt was not successful, try again.</font>
				</c:if>
			</td>
		</tr>
		<tr>
			<td colspan="2">
				<div id="footer"><p>耀点100版权所有 &copy; 2009 Yaodian100 cn. All Rights Reserved.</p></div>
			</td>
		</tr>
	</table>
</div>
<script language="javascript">
function SubmitEnter(myform,e) { 
	var keycode; 
	if (window.event) 
	  keycode = window.event.keyCode; 
	else if (e)
	  keycode = e.which; 
	else 
	 return true;
	if (keycode == 13) {
		myform.submit();
		return false;
	} else
	  return true;
}

  document.getElementById('j_username').focus();
</script>
</c:if>
</center>
</body>
</html>